package cn.stalk.wf.service.impl;

import cn.stalk.wf.dao.AccessRepository;
import cn.stalk.wf.service.AccessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccessServiceImpl implements AccessService {

    @Autowired
    private AccessRepository accessRepository;

    @Override
    public List<String> selectAllUser() {
        return accessRepository.selectAllUser();
    }

    @Override
    public List<String> selectUserByGroup(String group) {
        return accessRepository.selectUserByGroup(group);
    }

    @Override
    public List<String> selectGroupByUser(String user) {
        return accessRepository.selectGroupByUser(user);
    }

}
